#[derive(Debug)]
struct Rectangle {
    width:i32,
    height:i32,
}

impl Rectangle {
    fn new(width:i32,height:i32) -> Self {
        Rectangle{
            width,
            height,
        }
    }

    fn area(&self) -> i32 {
        self.width * self.height
    }

    fn liti(&self,i:i32) -> i32 {
        self.height * self.width * i
    }
}

fn main() {
    println!("Hello, world!");
    let demo = Rectangle::new(5,6);
    println!("{:#?}",demo);
    println!("{:#?}",demo.area());
    let demo2 = demo.liti(5);
    println!("{:#?}",demo2);

}
